:root {
  --primary-color: #c3bef0;
  --primary-light: #d8d5f7;
  --primary-dark: #a29bd8;
  --secondary-color: #defcf9;
  --secondary-light: #edfffe;
  --secondary-dark: #b9f0e8;
  --accent-color: #8a7ad8;
  --text-color: #333333;
  --light-text: #777777;
  --border-color: #e0e0e0;
  --success-color: #4cd964;
  --warning-color: #ffcc00;
  --danger-color: #ff3b30;
  --background-color: #f8f9fa;
}

* {
  scrollbar-width: none;
}

body {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  /* 居中 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone-container {
  width: 390px;
  height: 844px;
  background-color: white;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin: 20px;
  display: inline-block;
}

.status-bar {
  height: 44px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-bar .time {
  font-weight: bold;
}

.status-bar .icons {
  display: flex;
  gap: 5px;
}

.app-content {
  height: calc(100% - 44px - 83px);
  overflow-y: auto;
  position: relative;
}

.tab-bar {
  height: 83px;
  background-color: white;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 20px;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--light-text);
  font-size: 10px;
  text-decoration: none;
}

.tab-item.active {
  color: var(--primary-color);
}

.tab-item i {
  font-size: 22px;
  margin-bottom: 4px;
}

.header {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
}

.header h1 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.header .actions {
  display: flex;
  gap: 15px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  object-fit: cover;
}

.avatar.large {
  width: 80px;
  height: 80px;
  border-radius: 40px;
}

.card {
  background-color: white;
  border-radius: 12px;
  padding: 16px;
  margin: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 聊天气泡样式 */
.message {
  max-width: 70%;
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 18px;
  position: relative;
}

.message.received {
  background-color: var(--secondary-light);
  border-bottom-left-radius: 5px;
  align-self: flex-start;
  margin-left: 10px;
}

.message.sent {
  background-color: var(--primary-light);
  color: var(--text-color);
  border-bottom-right-radius: 5px;
  align-self: flex-end;
  margin-right: 10px;
}

/* 输入框样式 */
.input-container {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: white;
  border-top: 1px solid var(--border-color);
}

.input-container input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 12px 16px;
  background-color: #f0f0f0;
  margin: 0 10px;
}

.input-container button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 24px;
  cursor: pointer;
}

/* 通用工具类 */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.mt-2 {
  margin-top: 8px;
}

.mb-2 {
  margin-bottom: 8px;
}

.p-4 {
  padding: 16px;
}

.text-sm {
  font-size: 14px;
}

.text-xs {
  font-size: 12px;
}

.text-lg {
  font-size: 18px;
}

.font-bold {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-light {
  color: var(--light-text);
}

.rounded-full {
  border-radius: 9999px;
}

/* 渐变背景 */
.gradient-bg {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}

/* 毛玻璃效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
} 